package cn.sportvip.entity.sport;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import cn.sportvip.entity.IdEntity;
/**
 * 教练
 * @author tao
 */
@Entity
@Table(name = "sport_coach")
public class Coach extends IdEntity{

	private static final long serialVersionUID = 1L;
	private String introduction; 
	private String resume;
	
	/**教那些课程*/
	@OneToMany(fetch = FetchType.EAGER, targetEntity = Course.class, mappedBy = "coach")
	private Set<Course> courses = new HashSet<Course>(0);
	
	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getResume() {
		return resume;
	}

	public void setResume(String resume) {
		this.resume = resume;
	}

	public Set<Course> getCourses() {
		return courses;
	}

	public void setCourses(Set<Course> courses) {
		this.courses = courses;
	}
}
